#ifndef __SERPORT3_H
#define __SERPORT3_H

/* Includes ------------------------------------------------------------------*/
#include "sys.h"

/* Exported variables ---------------------------------------------------------*/
#define  ser3_RD_BUFFMAX 256
#define  ser3_TX_BUFFMAX 256

extern unsigned char    ser3_WrFlag1;
extern unsigned char    ser3_WrFlag2;
extern unsigned char    ser3_RdFlag;
extern unsigned char    ser3_RdTime;
extern unsigned char    ser3_RdStep;
extern unsigned int    ser3_RdNum;
extern unsigned int    ser3_TxNum;

extern  char    ser3_RB[ser3_RD_BUFFMAX];
extern  char    ser3_TB[ser3_TX_BUFFMAX];
//extern u16	SPRT_Type, SPRT_Kind, SPRT_LanguageType, SPRT_PurifyType;

/* Exported define ------------------------------------------------------------*/

void ser3_Write(char *ser3buff,u16 TX_Num);
void ser3_Init(uint16_t BaudRate, uint32_t WordLength, uint32_t StopBits, uint32_t Parity);
void ser3_rx_interrupt(UART_HandleTypeDef *huart);

#endif /*DEFINE END */
